package club.itstudio.itouc.controller.admin

import club.itstudio.itouc.core.annotation.AdminRequired
import club.itstudio.itouc.core.util.Result
import club.itstudio.itouc.core.util.ResultUtil
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/admin")
class AdminNews {

    @AdminRequired
    @GetMapping("/news")
    fun getNews(): Result<Any> {
        val map = mapOf("newmsg" to true)
        return ResultUtil.success(map)
    }
}